package com.hui.blog_server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hui.blog_server.entity.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


/**
 * @author 彩色的小灰
 */
@Mapper
public interface CollectMapper extends BaseMapper<Collect> {
    @Select("select * from collect,collect_title where collect.collect_title_id=collect_title.id")
    List<Map<String, ?>> getAllCollect();
}
